import { defineAmisPlugin, getBaseFormItem, getInputTpl } from '../../base/util';
import component from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
    return {
        component,
        options: getBaseFormItem({
            type: 'input-number', order: -6987, name: '数字框', icon: 'FieldNumberOutlined',xtype:'InputNumber',
            tpls: [
                getInputTpl('prefix', { label: "前缀" }),
                getInputTpl('placeholder', { label: "提示文本" }),
                getInputTpl('min', { label: "最大值",type: "number" }),
                getInputTpl('max', { label: "最小值",type: "number" }),
                getInputTpl('extra', { label: "额外内容" }),
                getInputTpl('precision', { label: "精确位" ,type: "number"}),
            ]
        })
    };
});
